Define these values as constants:
final int treeX = 200, treeY = 10, treeW = 125, treeH = 55; // tree leaves
Add foliage to the tree:
gr.setColor( Color.green ); gr.drawOval( treeX, treeY, treeW, treeH );
Five green lines make up the rolling hills
in the background.
(Click here to see them.)
Estimate an (X, Y) value for each line's endpoints.
If a value already has a name, like houseX
,
or can be calculated, do that.
The first line is the one on the left. Fill in the blanks in the following. (It might be a bit tedious to fill them all in, but try at least a few.)
Try to use values that are already in variables, when you can.
For example, line 2 ends at the x value in houseX
.